import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import * as echarts from 'echarts';
import Chart from './components/Echart/chart.vue';
import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';
import api from './utils/request.js';
import Store from 'vuex';

// fade/zoom 等
import 'element-plus/lib/theme-chalk/base.css';
// collapse 展开折叠
import { ElCollapseTransition } from 'element-plus';

const Vue = createApp(App);
Vue.component(ElCollapseTransition.name, ElCollapseTransition);
Vue.component('Chart', Chart);
Vue.config.globalProperties.echarts = echarts;
Vue.config.globalProperties.$api = api;
Vue.config.globalProperties.$store = Store;
Vue.use(store).use(ElementPlus).use(router).mount('#app');
